package com.new2i.model;
 
import java.lang.reflect.Field; 
  
/**
 * 用户User实体类
 * @since 2015/08/19
 * @author 2i
 *
 */ 
public class UserEntity extends BaseEntity {  

    public UserEntity() {} 
	 
	//用户id
	private int user_id = 0;  
	//用户名
	private String user_name = ""; 
	//密码
	private String  password = ""; 
	//头像
	private String user_photourl = ""; 
	//身份证号
	private String cid = ""; 
	//性别 {0＝女},{1=男}
	private int sex = 0;
	//电话号码
	private String tel = "";
	//家庭地址
	private String address = ""; 
	//省份
	private String province = "";
	//城市
	private String city = "";
	//平台
	private int platform = 0;
	//微信open id
	private String wxid = "";  
	//来源{0:微信用户},{1:关联人},{2:手动创建用户}
	private int source = 0; 
	//用户类型{0:普通用户,2:新生儿用户}
	private int user_type = 0;  
	//用户口令
	private String user_token = "";
	//家族病史
	private String  familyhistory = "";
	//出生年月
	private String birthday = "";
	//病历号
	private int emr_no = 0;
	//公众号来源{0:mhealth2i},{1:kmaier},{2:shiqi},{3:qz_eyecare}
	private int public_number_source = 0;
	 
	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getPassword() {
		return password;
	} 

    public void setPassword(String password) {
		this.password = password;
	}
	  
	
	public String getUser_photourl() {
		return user_photourl;
	}

	public void setUser_photourl(String user_photourl) {
		this.user_photourl = user_photourl;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
 
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public int getPlatform() {
		return platform;
	}

	public void setPlatform(int platform) {
		this.platform = platform;
	}

	public String getWxid() {
		return wxid;
	}

	public void setWxid(String wxid) {
		this.wxid = wxid;
	}

	public int getSource() {
		return source;
	}

	public void setSource(int source) {
		this.source = source;
	}

	public int getUser_type() {
		return user_type;
	}

	public void setUser_type(int user_type) {
		this.user_type = user_type;
	}

	public String getUser_token() {
		return user_token;
	}

	public void setUser_token(String user_token) {
		this.user_token = user_token;
	}

	public String getFamilyhistory() {
		return familyhistory;
	}

	public void setFamilyhistory(String familyhistory) {
		this.familyhistory = familyhistory;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public int getEmr_no() {
		return emr_no;
	}

	public void setEmr_no(int emr_no) {
		this.emr_no = emr_no;
	}

	public int getPublic_number_source() {
		return public_number_source;
	}

	public void setPublic_number_source(int public_number_source) {
		this.public_number_source = public_number_source;
	}
  
	public String toString() {
		StringBuffer sb = new StringBuffer("UserEntity["); 
		Field[] attrs = this.getClass().getFields();
		for(Field fd : attrs) {
			 String varName = fd.getName(); 
			 try {
				Object varValue = fd.get(varName);
				sb.append(varName);
				sb.append("="); 
				sb.append(varValue);
			} catch (Exception e) { 
				e.printStackTrace(); 
			}  
		} 
		sb.append("]");
		return sb.toString();
	}
}
